<% layout('/layouts/default.html', {title: '合同表管理', libs: ['validate']}){ %>
<div class="main-content">
	<div class="box box-main">
		<div class="box-header with-border">
			<div class="box-title">
				<i class="fa fa-list-alt"></i> ${ftySelContract.isNewRecord ? '新增合同表' : '编辑合同表'}
			</div>
			<div class="box-tools pull-right">
				<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
			</div>
		</div>
		<#form:form id="inputForm" model="${ftySelContract}" action="${ctx}/fty/ftySelContract/save" method="post" class="form-horizontal">
			<div class="box-body">
				<div class="form-unit">基本信息</div>
				<#form:hidden path="contractCode"/>
				<div class="row">
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required hide">*</span> 合同编号：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<span>${ftySelContract.cNumber}</span>
								<!--<#form:input path="cNumber" maxlength="100" class="form-control" readonly="readonly"  />-->
							</div>
						</div>
					</div>

				</div>
				<div class="form-unit">甲方</div>
				<div class="row">

					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required">*</span> 甲方类型：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">


								<#form:select path="aType" dictType="contract_business_type" blankOption="true" class="form-control required"/>
							</div>
						</div>
					</div>
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required">*</span> 甲方名称：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="aName" maxlength="100" class="form-control required"/>
							</div>
						</div>
					</div>


				</div>

				<div class="row">
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required hide">*</span> 甲方法人：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="aLegal" maxlength="100" class="form-control"/>
							</div>
						</div>
					</div>
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required">*</span> 甲方国家：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:select path="aContry" dictType="contract_contory" blankOption="true" class="form-control required"/>

							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required">*</span> 甲方地址: <i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="aAddress" maxlength="100" class="form-control required"/>
							</div>
						</div>
					</div>
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required hide">*</span> 甲方email：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="aEmail" maxlength="100" class="form-control"/>
							</div>
						</div>
					</div>
				</div>
				<div class="row">

					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required">*</span> 甲方证件类型：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:select path="aCardType" dictType="contract_card_type" blankOption="true" class="form-control required"/>

							</div>
						</div>
					</div>

					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required">*</span> 甲方证件号码:<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="aIdcard" maxlength="100" class="form-control required"/>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required hide">*</span> 甲方邮政编码：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="aPostcode" maxlength="100" class="form-control"/>
							</div>
						</div>
					</div>
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required">*</span> 甲方手机：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="aPhone" maxlength="100" class="form-control required"/>
							</div>
						</div>
					</div>
				</div>
				<div class="form-unit">甲方代理人</div>
				<div class="row">

					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required hide">*</span> 甲方代理人名字：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="aPName" maxlength="100" class="form-control"/>
							</div>
						</div>
					</div>

					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required hide">*</span> 甲方代理人国家：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:select path="aPContry" dictType="contract_contory" blankOption="true" class="form-control"/>


							</div>
						</div>
					</div>



				</div>
				<div class="row">


					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required hide">*</span> 甲方代理人证件类型：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">

								<#form:select path="aPCardType" dictType="contract_card_type" blankOption="true" class="form-control"/>

							</div>
						</div>
					</div>
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required hide">*</span> 甲方代理人证件号码：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="aPIdcard" maxlength="100" class="form-control"/>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required hide">*</span> 甲方代理人地址：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="aPAddress" maxlength="100" class="form-control"/>
							</div>
						</div>
					</div>
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required hide">*</span> 甲方代理人邮编：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="aPPoscode" maxlength="100" class="form-control"/>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required hide">*</span> 甲方代理人手机：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="aPPhone" maxlength="100" class="form-control" />
							</div>
						</div>
					</div>
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required hide">*</span> 甲方代理人邮箱：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="aPEmail" maxlength="100" class="form-control"/>
							</div>
						</div>
					</div>
				</div>
				<div class="form-unit">乙方</div>
				<div class="row">


					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required">*</span> 乙方类型：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">


								<#form:select path="bType" dictType="contract_business_type" blankOption="true" class="form-control required"/>
							</div>
						</div>
					</div>
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required">*</span> 乙方名称：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="bName" maxlength="100" class="form-control required"/>
							</div>
						</div>
					</div>


				</div>
				<div class="row">
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required hide">*</span> 乙方法人：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="bLegal" maxlength="100" class="form-control"/>
							</div>
						</div>
					</div>
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required">*</span> 乙方国家：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">

								<#form:select path="bContry" dictType="contract_contory" blankOption="true" class="form-control required"/>


							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required">*</span> 乙方地址：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="bAddress" maxlength="100" class="form-control required"/>
							</div>
						</div>
					</div>
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required hide">*</span> 乙方email：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="bEmail" maxlength="100" class="form-control"/>
							</div>
						</div>
					</div>

				</div>
				<div class="row">


					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required">*</span> 乙方证件类型：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">

								<#form:select path="bCardType" dictType="contract_card_type" blankOption="true" class="form-control required"/>

								<!--<#form:input path="" maxlength="100" class="form-control"/>-->
							</div>
						</div>
					</div>

					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required">*</span> 乙方证件号码：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="bIdcard" maxlength="100" class="form-control required"/>
							</div>
						</div>
					</div>
				</div>

				<div class="row">
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required hide">*</span> 乙方邮政编码：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="bPostcode" maxlength="100" class="form-control"/>
							</div>
						</div>
					</div>
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required">*</span> 乙方手机：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="bPhone" maxlength="100" class="form-control required"/>
							</div>
						</div>
					</div>

				</div>
				<div class="form-unit">乙方代理人</div>
				<div class="row">
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required hide">*</span> 乙方代理人名字：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="bPName" maxlength="100" class="form-control"/>
							</div>
						</div>
					</div>
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required hide">*</span> 乙方代理人国家：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:select path="bPContry" dictType="contract_contory" blankOption="true" class="form-control"/>


							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required hide">*</span> 乙方代理人证件类型：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:select path="bPType" dictType="contract_card_type" blankOption="true" class="form-control"/>

								<!--<#form:input path="" maxlength="100" class="form-control"/>-->
							</div>
						</div>
					</div>

					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required hide">*</span> 乙方代理人证件号码：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="bPIdcard" maxlength="100" class="form-control"/>
							</div>
						</div>
					</div>

				</div>
				<div class="row">
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required hide">*</span> 乙方代理人地址：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="bPAddress" maxlength="100" class="form-control"/>
							</div>
						</div>
					</div>
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required hide">*</span> 乙方代理人邮编：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="bPPostcode" maxlength="100" class="form-control"/>
							</div>
						</div>
					</div>

				</div>


				<div class="row">
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required hide">*</span> 乙方代理人手机：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="bPPhone" maxlength="100" class="form-control"/>
							</div>
						</div>
					</div>
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required hide">*</span> 乙方代理人邮箱：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="bPEmail" maxlength="100" class="form-control"/>
							</div>
						</div>
					</div>

				</div>
				<div class="box-body">
					<div class="form-unit">房屋信息</div>
					<div class="row">
						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required">*</span> 房屋产权类型：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">
									<#form:select path="hCqType" dictType="contract_b_cqtype" blankOption="true" class="form-control required"/>


								</div>
							</div>
						</div>



						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required">*</span> 房产权证号：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">
									<#form:input path="hWarrantNumber" maxlength="100" class="form-control required"/>
								</div>
							</div>
						</div>

					</div>
					<div class="row">
						<!--<div class="col-xs-12">-->
						<!--<div class="form-group">-->
						<!--<label class="control-label col-sm-2" title="">-->
						<!--<span class="required hide">*</span> 丙方投诉号码：<i class="fa icon-question hide"></i></label>-->
						<!--<div class="col-sm-10">-->
						<!--<#form:input path="cTsPhone" maxlength="100" class="form-control"/>-->
						<!--</div>-->
						<!--</div>-->
						<!--</div>-->






						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required">*</span> 房屋户名：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">
									<#form:input path="hAccountName" maxlength="100" class="form-control required"/>
								</div>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required">*</span> 房屋地址：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">
									<#form:input path="hAddress" maxlength="100" class="form-control required"/>
								</div>
							</div>
						</div>
						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required">*</span> 房屋总层数：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">
									<#form:input path="hAllplies" maxlength="100" class="form-control required"/>
								</div>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required">*</span> 房屋所在层：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">
									<#form:input path="hPlie" maxlength="100" class="form-control required"/>
								</div>
							</div>
						</div>
						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required">*</span> 房屋用途：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">
									<#form:select path="hUseage" dictType="contract_hourse_useage" blankOption="true" class="form-control required"/>



								</div>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required">*</span> 房屋年限：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">
									<#form:select path="hYear" dictType="contract_house_year" blankOption="true" class="form-control required"/>

								</div>
							</div>
						</div>
						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required">*</span> 房屋竣工时间：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">
									<#form:select path="hFinish" dictType="contract_finish_time" blankOption="true" class="form-control required"/>

									<!--<#form:input path="" maxlength="100" class="form-control"/>-->


								</div>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required">*</span> 房屋结构：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">
									<#form:select path="hStruts" dictType="contract_struts_type" blankOption="true" class="form-control required"/>
								</div>
							</div>
						</div>
						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required">*</span> 建筑面积：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">
									<#form:input path="hArea" maxlength="100" class="form-control required"/>
								</div>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required">*</span> 装修情况：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">

									<#form:select path="hDecoration" dictType="decoration_condition" blankOption="true" class="form-control required"/>
								</div>
							</div>
						</div>
						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required">*</span> 其他设施：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">
									<#form:input path="hOthers" maxlength="100" class="form-control required"/>
								</div>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required hide">*</span> 附属房独有还是共有：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">

									<#form:select path="hYyType" dictType="contract_outhouse" blankOption="true" class="form-control"/>

								</div>
							</div>
						</div>
						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required hide">*</span> 附属房种类：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">

									<#form:select path="hFss" dictType="contract_outhouse_type" blankOption="true" class="form-control"/>

								</div>
							</div>
						</div>

					</div>
					<div class="row">
						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required hide">*</span> 附属房面积种类：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">



									<#form:select path="hUseType" dictType="contract_house_use_type" blankOption="true" class="form-control"/>

								</div>
							</div>
						</div>
						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required hide">*</span> 附属房面积大小：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">
									<#form:input path="hUseArea" maxlength="100" class="form-control"/>
								</div>
							</div>
						</div>
					</div>



					<div class="row">
						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required hide">*</span> 房屋限制使用权情况说明：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">

									<#form:checkbox  path="hOthersStatus"   dictType="h_limit" class="form-control" />


								</div>
							</div>
						</div>
						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required">*</span> 房屋改造情况说明：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">


									<#form:select path="hGzSm" dictType="h_struts_other" blankOption="true" class="form-control required"/>

								</div>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required">*</span> 国有土地使用权人：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">
									<#form:input path="hGLandholder" maxlength="100" class="form-control required"/>
								</div>
							</div>
						</div>
						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required hide">*</span> 国有土地权证号：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">
									<#form:input path="hGWarrantNumber" maxlength="100" class="form-control"/>
								</div>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required">*</span> 国有土地使用权类型：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">
									<#form:select path="hGLandType" dictType="public_domain_use_type" blankOption="true" class="form-control required"/>
								</div>
							</div>
						</div>
						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required hide">*</span> 国有土地其他情况类型：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">
									<#form:input path="hGLandOthers" maxlength="100" class="form-control"/>
								</div>
							</div>
						</div>
					</div>
				</div>

				<div class="form-unit">合同费用</div>


				<div class="row">

					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required">*</span> 增值税承担方：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:select path="addedvaluePart" dictType="contract_ac" blankOption="true" class="form-control required"/>

							</div>
						</div>
					</div>






					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required">*</span>个人所得税承担方：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:select path="persontaxPart" dictType="contract_ac" blankOption="true" class="form-control required"/>

							</div>
						</div>
					</div>



					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required hide">*</span> 土地划拨税承担方：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:select path="landTax" dictType="contract_ac" blankOption="true" class="form-control"/>

							</div>
						</div>
					</div>

				</div>



				<div class="col-xs-12">
					<div class="form-group">
						<label class="control-label col-sm-2" title="">
							<span class="required">*</span> 贷款方式：<i class="fa icon-question hide"></i></label>
						<div class="col-sm-10">

							<#form:select path="dkFs" dictType="contract_dk_fs" blankOption="true" class="form-control required"/>

						</div>
					</div>
				</div>




				<!--<div class="row">-->



					<!--<div class="col-xs-12">-->
						<!--<div class="form-group">-->
							<!--<label class="control-label col-sm-2" title="">-->
								<!--<span class="required hide">*</span> 其他约定：<i class="fa icon-question hide"></i></label>-->
							<!--<div class="col-sm-10">-->
								<!--<#form:checkbox  path="otherEngagements"   dictType="contract_other_engagements" class="form-control" />-->

							<!--</div>-->
						<!--</div>-->
					<!--</div>-->

				<!--</div>-->
				<!--<div class="row">-->



					<!--<div class="col-xs-12">-->
					<!--<div class="form-group">-->
					<!--<label class="control-label col-sm-2" title="">-->
					<!--<span class="required hide">*</span> 房屋特殊情况说明：<i class="fa icon-question hide"></i></label>-->
					<!--<div class="col-sm-10">-->

					<!--<#form:checkbox  path="importantClause"   dictType="contract_spacial" class="form-control" />-->

					<!--</div>-->
					<!--</div>-->
					<!--</div>-->

				<!--</div>-->



				<div class="row">
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required">*</span> 房屋总价(元)：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="hMoneyAll" maxlength="100" class="form-control required"/>
							</div>
						</div>
					</div>
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required hide">*</span> 房屋价款(元)：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="hMoneyHouse" maxlength="100" class="form-control"/>
							</div>
						</div>
					</div>
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required hide">*</span> 其中装修等价款(元)：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="hMoneyDecor" maxlength="100" class="form-control"/>
							</div>
						</div>
					</div>




					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required">*</span> 定金(元)：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="hMoneyFirst" maxlength="100" class="form-control required"/>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required">*</span> 首付日期：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">

								<#form:input path="hTimeSecond" readonly="true" maxlength="20" class="form-control Wdate required"
										dataFormat="date" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>

							</div>
						</div>
					</div>
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required">*</span> 首付价格(元)：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="hMoneySecond" maxlength="100" class="form-control required"/>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required hide">*</span> 第二次支付房款(元)：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="hMoneyThird" maxlength="100" class="form-control"/>
							</div>
						</div>
					</div>
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required hide">*</span> 第二次支付时间：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="hTimeThird" readonly="true" maxlength="20" class="form-control Wdate"
										dataFormat="date" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required hide">*</span> 余款(元)：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="hMoneyFour" maxlength="100" class="form-control"/>
							</div>
						</div>
					</div>
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required hide">*</span> 余款时间：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="hTimeFour" readonly="true" maxlength="20" class="form-control Wdate "
										dataFormat="date" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required hide">*</span> 按揭余款(元)：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="hMoneyFive" maxlength="100" class="form-control"/>
							</div>
						</div>
					</div>

					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required">*</span> 是否用于甲方还贷：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:select path="useHd"   dictType="use_hd" maxlength="100" class="form-control required"/>
							</div>
						</div>
					</div>



					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required hide">*</span> 费用支付特别声明：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:checkbox  path="importantClause" dictType="contract_special" blankOption="true" class="form-control"/>
							</div>
						</div>
					</div>

					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required">*</span> 签订合同后未履行方每日承担：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="moneyBroke" maxlength="100" class="form-control required"/>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required">*</span> 签订合同后违约约定天数：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="moneyBrokeDay" maxlength="100" class="form-control required"/>
							</div>
						</div>
					</div>


					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required">*</span> 卖方支付居间服务费(元)：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="aManageFee" maxlength="100" class="form-control required"/>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required">*</span> 买方支付居间服务费(元)：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="bManageFee" maxlength="100" class="form-control required"/>
							</div>
						</div>
					</div>
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required hide">*</span> 乙方其他费用(元)：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="bOtherFee" maxlength="100" class="form-control"/>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required hide">*</span> 房屋附属品：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:input path="hAttached" maxlength="100" class="form-control"/>
							</div>
						</div>
					</div>
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required">*</span> 物业管理费用付款约定：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-10">
								<#form:select path="payWay" dictType="contract_pay_way" blankOption="true" class="form-control required"/>

							</div>
						</div>
						<div style="margin-left: 220px;margin-bottom: 10px;">
							1.由甲方承担，并向乙方提供最后一次物业管理服务费用交费凭据。<br/>
							2.由乙方承担。<br/>
						</div>

					</div>







					<div class="row">
						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required">*</span> 丙方违约赔偿百分比(%)：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">
									<#form:input path="cPrecent" maxlength="100" class="form-control required"/>
								</div>
							</div>
						</div>
						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required">*</span> 提供资料最晚天数：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">

									<#form:select path="traspasoDay" dictType="traspaso_day" blankOption="true" class="form-control required"/>



								</div>
							</div>
						</div>






						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required">*</span> 过户时甲方逾期一天支付金额：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">

									<#form:input path="aYqOneydayMoney" maxlength="100" class="form-control required"/>

								</div>
							</div>
						</div>
						<!--<div class="col-xs-12">-->
							<!--<div class="form-group">-->
								<!--<label class="control-label col-sm-2" title="">-->
									<!--<span class="required hide">*</span> 过户甲方违约金(元)：<i class="fa icon-question hide"></i></label>-->
								<!--<div class="col-sm-10">-->

									<!--<#form:input path="aWyMoney" maxlength="100" class="form-control"/>-->

								<!--</div>-->
							<!--</div>-->
						<!--</div>-->
						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required hide">*</span>签约受害方有权按以下方式得到赔偿：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">

								<textarea  class="form-control" readonly="readonly">
甲方须按约定按时提供产权过户所需资料,按中介合同要求由丙方组织到指
定交易所办理产权过户手续和银行按揭手续，不得拖延，甲方每逾期一天支付乙
方_____元整，逾期超过十天以上，视作为甲方违约。违约责任
：甲方返还乙方双倍定金。甲方不再享受丙方给予的任何优惠中
介服务费，应按照房屋成交总价2.6%（住宅类）或 4%(非住宅类）向丙方支付中介
服务费。甲方赔偿由此给乙方、丙方造成的 其他损失。因甲方未按合同履行各项
义务，甲方应承担乙方、丙方要求甲方履行各项义务而支付的律师费、调查费、
餐旅费、诉讼费等各项实现权利费用。
									</textarea>

								</div>
							</div>
						</div>

						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required">*</span> 过户时乙方逾期一天支付金额(元)：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">

									<#form:input path="bYqOnedayMoney" maxlength="100" class="form-control required"/>

								</div>
							</div>
						</div>



						<!--<div class="col-xs-12">-->
							<!--<div class="form-group">-->
								<!--<label class="control-label col-sm-2" title="">-->
									<!--<span class="required hide">*</span> 过户乙方违约金(元)：<i class="fa icon-question hide"></i></label>-->
								<!--<div class="col-sm-10">-->

									<!--<#form:input path="bWyMoney" maxlength="100" class="form-control"/>-->

								<!--</div>-->
							<!--</div>-->
						<!--</div>-->

						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required hide">*</span>按揭代办服务费(元)：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">
									<#form:input path="fAnjb" maxlength="100" class="form-control" id="an1"  onchange="doit()"/>

								<!--<textarea  rows="4" maxlength="200" class="form-control" readonly="readonly"  >按揭服务代办费按贷款全额的0.2％收取，低于50万额度的按1000元收取。权证代办每套550元整，资料费50元。-->
										<!--共计收取代办服务费__元整。-->
										<!--以上费用都由乙方承担支付。"</textarea>-->


								</div>
							</div>
						</div>


						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required">*</span> 权证费用(元)：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">

									<#form:input path="qzFy" maxlength="100" class="form-control required" id="an2" onchange="doit()"/>

								</div>
							</div>
						</div>
						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required">*</span> 资料费用(元)：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">
									<#form:input path="zlFy" maxlength="100" class="form-control required" id="an3" onchange="doit()"/>
								</div>
							</div>
						</div>
						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required hide">*</span> 上述服务费总计：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">

									<#form:input path="gfDate" maxlength="100" class="form-control" id="an4" readonly="readonly"/>

								</div>
							</div>
						</div>
						<script>




						</script>
						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required hide">*</span> 费用其他约定：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">
									<#form:checkbox  path="fyOthers"  dictType="contract_fy_others" blankOption="true" class="form-control"/>


								</div>
							</div>
						</div>

						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required">*</span> 过户手续办理时间：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">

									<#form:input path="hTimeFive" readonly="true" maxlength="20" class="form-control Wdate required"
											dataFormat="date" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>

								</div>
							</div>
						</div>
						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required hide">*</span> 其他相关事宜：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">
									<#form:checkbox  path="jfOthers" dictType="contract_jf_others" blankOption="true" class="form-control required"/>
								</div>
							</div>
						</div>
						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required hide">*</span> 房产证本数：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">
									<#form:input path="fczNumber" maxlength="100" class="form-control "/>
								</div>
							</div>
						</div>


						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required hide">*</span> 土地使用权本书：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">
									<#form:input path="tdNumber" maxlength="100" class="form-control "/>
								</div>
							</div>
						</div>



						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required hide">*</span> 不动产权本书：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">
									<#form:input path="bdNumber" maxlength="100" class="form-control "/>
								</div>
							</div>
						</div>



						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required hide">*</span> 契证本数：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">
									<#form:input path="qzNumber" maxlength="100" class="form-control"/>
								</div>
							</div>
						</div>



					</div>
					<div class="row">
						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required">*</span> 起诉单位：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">
									<#form:select path="prosecuteWay" dictType="contract_third_type" blankOption="true" class="form-control required"/>
									<!--<#form:input path="" maxlength="100" class="form-control"/>-->
								</div>
							</div>
						</div>
						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required hide">*</span> 相关适宜说明备注：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">
									<#form:input path="remark" maxlength="100" class="form-control"/>
								</div>
							</div>
						</div>
					</div>



					<div class="row">
						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required">*</span> 交付约定：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">

									<#form:checkbox  path="jfYd" dictType="contract_deliver" class="form-control required" />

								</div>
							</div>
						</div>
						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required hide">*</span>交付时间：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">
									<#form:input path="jfDate" readonly="true" maxlength="20" class="form-control Wdate"
											dataFormat="date" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>

								</div>
							</div>
						</div>
					</div>

					<div class="row">

						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required hide">*</span> 水电无法结清时保证金：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">
									<#form:input path="wfjqFy" maxlength="100" class="form-control"/>
								</div>
							</div>
						</div>



						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required hide">*</span> 相关事宜特别声明：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">
									<textarea  class="form-control" readonly="readonly">特别声明：甲乙双方没有通知丙方（中介方）的情况下．甲乙双方自行进行上述出售房屋交房或支付房款等情况后如发生本套房屋及其他法律和经济纠纷与中介经纪公司无关，一切法律和经济责任都由甲乙双方各自承担</textarea>
								</div>
							</div>
						</div>

					</div>




					<div class="row">
						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required">*</span> 合同生成日期：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">

									<#form:input path="contractDate" readonly="true" maxlength="20" class="form-control Wdate required"
											dataFormat="date" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true});"/>

								</div>
							</div>
						</div>
						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required hide">*</span> 签约受害方以以下方式得到赔偿：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">
								<textarea  rows="4"  class="form-control" readonly="readonly"  >
									　乙方须按约定按时提供产权过户所需资料,按中介合同要求由丙方组织到指定交易所办理产权过户手续和银行按揭手续，不得拖延，乙方每逾期一天支付甲方___元整，逾期超过十天以上，视作为乙方违约。违约责任：甲方有权没收乙方的定金。乙方不再享受丙方给予的任何优惠中介服务费，应按照房屋成交总价2.6%（住宅类）或4%(非住宅类）向丙方支付中介服务费。乙方赔偿由此给甲方、丙方造成的其他损失。因乙方未按合同履行各项义务，乙方应承担甲方、丙方要求乙方履行各项义务而支付的律师费、调查费、餐旅费、诉讼费等各项实现权力费用。
								</textarea>

								</div>
							</div>
						</div>

						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required hide">*</span> 附件页数：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">
									<#form:input path="fjYs" maxlength="100" class="form-control"/>
								</div>
							</div>
						</div>


						<div class="col-xs-12">
							<div class="form-group">
								<label class="control-label col-sm-2" title="">
									<span class="required hide">*</span> 补充说明：<i class="fa icon-question hide"></i></label>
								<div class="col-sm-10">

									<#form:checkbox   path="contractAdd" dictType="contract_add" class="form-control" />

								</div>
							</div>
						</div>


					</div>
				</div>
				<div class="box-footer">
					<div class="row">
						<div class="col-sm-offset-2 col-sm-10">
							<% if (hasPermi('fty:ftySelContract:edit')){ %>
							<button type="submit" class="btn btn-sm btn-primary" id="btnSubmit"><i class="fa fa-check"></i> 保 存</button>&nbsp;
							<% } %>
							<button type="button" class="btn btn-sm btn-default" id="btnCancel" onclick="js.closeCurrentTabPage()"><i class="fa fa-reply-all"></i> 关 闭</button>
						</div>
					</div>
				</div>
		</#form:form>
	</div>
</div>
<% } %>
<script>
	document.body.innerHTML = document.body.innerHTML.replace('#money_broke#', '__');
	document.body.innerHTML = document.body.innerHTML.replace('#money_broke_day#', '__');
	function doit(){
		try {
			$('#an4').val(validateNaN(parseFloat($('#an1').val()))+validateNaN(parseFloat($('#an2').val()))+validateNaN(parseFloat($('#an3').val())));
		}



		catch(err){

			alert("按揭代办服务费不能为非数字") ;// 可执行
		}
	}
    function validateNaN(num){
        if(isNaN(num)){
            return 0;
        }else
            return num;
    }
	$("#inputForm").validate({
		submitHandler: function(form){
			try {
				$('#an4').val(validateNaN(parseFloat($('#an1').val()))+validateNaN(parseFloat($('#an2').val()))+validateNaN(parseFloat($('#an3').val())));
			}



			catch(err){

				alert("按揭代办服务费不能为非数字") ;// 可执行
			}
			js.ajaxSubmitForm($(form), function(data){
				js.showMessage(data.message);
				if(data.result == Global.TRUE){
					js.closeCurrentTabPage(function(contentWindow){
						contentWindow.page();
					});
				}
			}, "json");
		}
	});
</script>